﻿@using LogManager.Helpers
@functions{
    public string Selected(string action)
    {
        return Url.HasAction(action) ? "selected" : string.Empty;
    }    
}  

<ul class="nav">
    <li class="@Selected("Index")">
        @Html.ActionLink("Errors", "Index")
    </li>
    <li class="@Selected("Request")">
        @Html.ActionLink("Requests", "Request")
    </li>
</ul>
